﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using log4net;
using log4net.Config;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {

        private static readonly ILog TxtLog = LogManager.GetLogger(typeof(Form1));

        //string A=System.Windows.Forms.Application.StartupPath+"\\App.config";
        
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
           // XmlConfigurator.Configure(new System.IO.FileInfo(A));
            TxtLog.Info("App_Start");

            
           
        }

        private void button1_Click(object sender, EventArgs e)
        {
          //  XmlConfigurator.Configure(new System.IO.FileInfo(A));
            try
            {
                int a= Convert.ToInt32(textBox1.Text) * 4;
                textBox2.Text = a + "";
            }
            catch(Exception ex)
            {
                TxtLog.Error(ex.ToString());
            }
        }

        private void Form1_FormClosed(object sender, FormClosedEventArgs e)
        {
           // XmlConfigurator.Configure(new System.IO.FileInfo(A));
            TxtLog.Info("App_Closed");
        }
    }
}
